package main

import (
	"os/exec"
	"log"
	"fmt"
	"os"
	"strings"
)

func main() {
	sa()
	out, err := exec.Command("date").Output()
	// ip route get 8.8.8.8 | awk '{ print $7;}'|head -1
	//out, err := exec.Command("ip route get  ").Output()
	//out, err := exec.Command("ifconfig eth0").Output()
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("The date is %s\n", out)
}

func sa()  {
	for _, e := range os.Environ() {
		pair := strings.Split(e, "=")
		fmt.Println(pair[0],pair[1])
	}
}